<%@ page import="com.wzy.Jdbc封装.pojo.News_category" %>
<%@ page import="com.wzy.level.category.categoryServlet.category" %><%--
  Created by IntelliJ IDEA.
  User: aiwzy
  Date: 2022/4/6
  Time: 13:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>回显数据进行修改或新增</title>
</head>
<%--<%--%>
<%--    News_category category = (News_category) session.getAttribute("category");--%>
<%--    int state = (int) session.getAttribute("state");--%>
<%--%>--%>
<body>

    <form action="//category_form_mid" method="post">
        <input type="text" name="id" value="${sessionScope.category.id}" hidden>
        <input type="text" name="state" value="${sessionScope.state}" hidden>

        名称：<input type="text" name="name" value="
<c:if test="${state==0}">
        ${sessionScope.category.name}
    </c:if>
    <c:if test="${state==1}">
        ${""}
    </c:if>
" >
        创建日期：<input type="text" name="date" value="
<c:if test="${state==0}">
        ${sessionScope.category.date}
    </c:if>
    <c:if test="${state==1}">
        ${""}
    </c:if>
 " >
        <input type="submit" value="提交">
    </form>
</body>
</html>
